//
//  YZWorkNoteListCell.h
//  VET
//
//  Created by 刘文靖 on 2018/7/10.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <YYKit/YYKit.h>
@class YZWorkNoteListCell, YZWorkNoteLayout,YZWorkNoteModel,YZNoteAudioDisplayBtn;

@interface YZWorkNoteTopToolView : UIView
@property (nonatomic, strong) UILabel *timetextLabel;  //时间
@property (nonatomic, strong) UIButton *manageButton;  //处理按钮
@end

@interface YZWorkNoteBottomToolView : UIView
@property (nonatomic, strong) UILabel *classifyLabel; //分类
@property (nonatomic, strong) UILabel *archiveLabel;  //归档
@end

@interface YZWorkNoteView : UIView
@property (nonatomic, strong) UIView *contentView;                  // 内容容器
@property (nonatomic, strong) YZWorkNoteTopToolView *topTool;       // 顶部 时间+处理按钮
@property (nonatomic, strong) YYLabel *textLabel;                   // 文本
@property (nonatomic, strong) UIButton *showMoreButton;
@property (nonatomic, strong) NSArray<UIView *> *picViews;          // 图片View
@property (nonatomic, strong) YZNoteAudioDisplayBtn *audioDisplayBtn;
@property (nonatomic, strong) UIImageView *videoTipView;
@property (nonatomic, strong) YZWorkNoteBottomToolView *bottomTool; // 底部 分类+归档

@property (nonatomic, strong) YZWorkNoteLayout *layout;
@property (nonatomic, weak) YZWorkNoteListCell *cell;
@end
@protocol YZWorkNoteListCellDelegate <NSObject>
@optional
/// 点击了管理
- (void)cellDidClickManage:(YZWorkNoteListCell *)cell;
/// 点击了图片
- (void)cell:(YZWorkNoteListCell *)cell didClickImageAtIndex:(NSUInteger)index;
/// 点击了查看全部
- (void)cellDidClickMoreButton:(YZWorkNoteListCell *)cell;
@end

typedef void(^YZWorkNoteManageBlock)(void);
@interface YZWorkNoteListCell : UITableViewCell
@property (nonatomic, strong) YZWorkNoteView *noteView;
- (void)setLayout:(YZWorkNoteLayout *)layout;
@property (nonatomic, weak) id<YZWorkNoteListCellDelegate> delegate;
@end
